package com.registrator;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Wait;
import org.openqa.selenium.support.ui.WebDriverWait;

/**
 * @author nli
 */
public class Test {
    public static void main(String[] args) {
        WebDriver driver = new FirefoxDriver();
//        Selenium selenium = new WebDriverBackedSelenium(driver, "http://www.google.com");
        Wait<WebDriver> wait = new WebDriverWait(driver, 30);
        driver.get("http://www.google.com");

        WebElement searchBox = driver.findElement(By.name("q"));
        searchBox.sendKeys("cheese");

        driver.findElement(By.name("btnK")).click();
        // some text code here
        System.out.println();
//        driver.quit();
    }
}
